<template>
  <div v-if="question">
    <el-form label-width="120px" size="mini">
      <edit-common-module :question="question"></edit-common-module>
      <el-form-item label="默认图片：">
        <el-input v-model="question.defaultImage" placeholder="默认图片地址"></el-input>
      </el-form-item>
      <el-form-item label="图片提示：">
        <el-input v-model="question.imageDesc" placeholder="图片的说明（如：舌尖上翘）"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="onSubmit">保存</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
  import EditCommonModule from "./commonModule";

  export default {
    components: { EditCommonModule },
    name: "edit-i-image",
    props: ['page', 'question'],
    methods: {
      onSubmit() {
        this.$emit('edit', this.question)
      }
    }
  }
</script>

<style scoped>

</style>
